import { ChangeDetectionStrategy, Component } from '@angular/core';
import { MenuItem } from '@iux/live';

@Component({
  templateUrl: './max-show-num.component.html',
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class MaxShowNumComponent {
  items: MenuItem[] = [
    {
      id: 'Edit',
      label: 'Edit',
    },
    {
      id: 'Delete',
      label: 'Delete',
      disabled: true,
    },
    {
      id: 'File',
      label: 'File',
      items: [
        {
          id: 'File-Create',
          label: 'Create',
        },
        {
          id: 'File-Open',
          label: 'Open',
        },
        {
          id: 'File-Save',
          label: 'Save',
        },
      ],
    },
    {
      id: 'Do',
      label: 'Do',
      items: [
        {
          id: 'Do-Undo',
          label: 'Undo',
        },
        {
          id: 'Do-Redo',
          label: 'Redo',
        },
      ],
    },
    {
      id: 'Actions',
      label: 'Actions',
      disabled: true,
      divide: true,
    },
    {
      id: 'Exit',
      label: 'Exit',
    },
  ];

  getItems = () => this.items;
}
